﻿using MiniFox.Resources;
using Newtonsoft.Json;
using System.ComponentModel.DataAnnotations;

namespace Sys.Core.Models.Dto
{
    [JsonObject]
    public class RoleModuleSet
    {
        [JsonProperty("roleId")]
        [Required(ErrorMessageResourceType = typeof(CommonMessages), ErrorMessageResourceName = "MSG_CommonRequired")]
        public string RoleID { get; set; }

        [JsonProperty("modules")]
        [Required(ErrorMessageResourceType = typeof(CommonMessages), ErrorMessageResourceName = "MSG_CommonRequired")]
        public string[] Modules { get; set; }
    }


    //[JsonObject]
    //public class RoleModuleActionSet
    //{
    //    [Required(ErrorMessageResourceType = typeof(CommonMessages), ErrorMessageResourceName = "MSG_CommonRequired")]
    //    public RoleDto Role { get; set; }

    //    [Required(ErrorMessageResourceType = typeof(CommonMessages), ErrorMessageResourceName = "MSG_CommonRequired")]
    //    public Module Module { get; set; }

    //    public string[] Actions { get; set; }

    //}
}
